//
//  DAKeyboardControl.h
//  DAKeyboardControlExample
//
//  Created by Daniel Amitay on 7/14/12.
//  Copyright (c) 2012 Daniel Amitay. All rights reserved.
//

#import <UIKit/UIKit.h>


typedef NS_ENUM(NSInteger, UIKeyboardState) {
    UIKeyboardStateWillShow,
    UIKeyboardStateDidShow,
    UIKeyboardStateWillHide,
    UIKeyboardStateDidHide
};

typedef void (^DAKeyboardDidMoveBlock)(CGRect keyboardFrameInView, UIKeyboardState state);

@interface UIView (DAKeyboardControl)

//@property (nonatomic) CGFloat keyboardTriggerOffset;
//@property (nonatomic, readonly) BOOL keyboardWillRecede;

- (void)addKeyboardPanningWithActionHandler:(DAKeyboardDidMoveBlock)didMoveBlock;
- (void)addKeyboardNonpanningWithActionHandler:(DAKeyboardDidMoveBlock)didMoveBlock;

//- (void)removeKeyboardControl;
//
//- (CGRect)keyboardFrameInView;
//
//- (void)hideKeyboard;

@end

